package me.ZFC.demo;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        String s3="Abc";
        String s4="abc";
        String s1=new String("abc");
        String s2=new String("abc");
        System.out.println(s1==s2);
        System.out.println(s1.equals(s2));
        System.out.println(s2.equals(s4));
        System.out.println(s1.equalsIgnoreCase(s3));
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String s5=sc.next();
        System.out.println(s5.equals(s4));
    }
}
